﻿using System;

namespace YKXiangQi.ViewModels
{
    public class DialogViewModel: ViewModelBase
    {
        public bool? DialogResult { get; private set; }
        public event EventHandler RequestClose;
        protected virtual void OnRequestClose(bool? result = null)
        {
            DialogResult = result;
            if (RequestClose != null)
                RequestClose(this, new EventArgs());
        }
    }
}
